package com.hzw.saas.common.verify.config;

import javax.validation.constraints.NotBlank;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
import lombok.Data;

/**
 * @author zzl
 * @since 01/13/2021
 */
@Component
@ConfigurationProperties(prefix = "aliyun.sms", ignoreInvalidFields = true, ignoreUnknownFields = true)
@Validated
@Data
public class SmsAliyunConfig {

    /**
     * regionId
     */
    private String regionId = "cn-hangzhou";

    /**
     * ak
     */
    @NotBlank
    private String accessKey;

    /**
     * sk
     */
    @NotBlank
    private String secretKey;

    /**
     * signName
     */
    private String signName;

    /**
     * 重置密码模板
     */
    private String templateCodeReset;

    /**
     * 注册用户模板
     */
    private String templateCodeRegister;

    /**
     * 支模板
     */
    private String templateCodePayment;

    /**
     * 更换手机号模板
     */
    private String templateCodeChange;
}
